﻿--[[
   @brief    web_bottom logic for  web_browser bottom game state
   @author   harleyxwang
   @version  1.0
   @date     2016-01-30
--]]

web_bottom_desc =
{
    module_name = 'web_bottom',
    events = 
    {
        {
            c_event = 
            {
                {
                    id = ierd_tgp.login_mgr.LOGIN_ON_LOGIN_SUCCESS,
                    callback = "web_bottom_control.on_login_success"
                },
            },
            lua_event = 
            {
                {
                    id  = banner_event.UPDATE_GAME_SERVERS,
                    callback = "web_bottom_control.update_game_servers"
                },
                {
                    id  = banner_event.UPDATE_GAME_STATE,
                    callback = "web_bottom_control.update_game_state"
                },
                {
                    id  = banner_event.UPDATE_PLUGIN_STATE,
                    callback = "web_bottom_control.update_plugin_state"
                },
                {
                    id = main_web_event.ON_JS_CALLBACK_TO_WEB_BOTTOM,
                    callback = "web_bottom_control.on_js_callback"
                },
            },
            lua_file = "web_bottom\\control.lua"
        }
    }
};
desc_mgr.add(web_bottom_desc);